package com.xs.aifitnessagent.exp;

import lombok.Getter;

/**
 * 自定义业务异常类
 *
 * @author lambor
 */
@Getter
public class BusinessException extends RuntimeException {

    /**
     * 异常码
     * 具体状态码参见枚举类ReturnCodeEnum
     *
     */
    private String code;

    /**异常信息**/
    private String message;

    public BusinessException(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
